package com.example.blogsystem.model;

import com.example.blogsystem.utils.DateUtils;
import lombok.Data;

import java.util.Date;
@Data
public class BlogInfo {
    private Integer id;
    private String title;
    private String content;
    private Integer userId;
    private Integer deleteFlag;
    private Date createTime;
    private Date updateTime;
    //当前作者是否为登录用户
    private boolean isLoginUser;

    public String getUpdateTime() {
        return DateUtils.format(updateTime);
    }
}
